using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SkeleIdleState : SkeleGroundState
{
    public SkeleIdleState(SkeleEnemy skele, StateMachine stateMachine, string animName) : base(skele, stateMachine, animName)
    {
    }

    public override void Enter()
    {
        base.Enter();
        stateTimer = skele.idleTime;
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();
        if(stateTimer < 0)
            stateMachine.ChangeState(skele.moveState);
    }
}
